package com.dongqi.sceneState.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 现场情况
 * @TableName scene_situation
 */
@TableName("scene_situation")
public class SceneSituationEntity implements Serializable {
    /**
     * id
     */
    private Long id;

    /**
     * 项目名称
     */
    private String projectName;

    /**
     * 项目编号
     */
    private String projectNo;

    /**
     * 工程名称
     */
    private String engineeringName;

    /**
     * 工程地点
     */
    private String engineeringPlace;

    /**
     * 施工单位
     */
    private String constructUnit;

    /**
     * 监理单位
     */
    private String supervisionUnit;

    /**
     * 建设单位
     */
    private String employer;

    /**
     * 项目负责人
     */
    private String projectLeader;

    /**
     * 联系方式
     */
    private String contactInfo;

    /**
     * 开工日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date startDate;

    /**
     * 竣工日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date endDate;

    /**
     * 项目完成程度
     */
    private String schedule;

    /**
     * 项目任务
     */
    private String projectTaskId;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    /**
     * 修改时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;

    /**
     * 备用1
     */
    private String bak1;

    /**
     * 备用2
     */
    private String bak2;

    /**
     * 备用3
     */
    private String bak3;

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    public Long getId() {
        return id;
    }

    /**
     * id
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 项目名称
     */
    public String getProjectName() {
        return projectName;
    }

    /**
     * 项目名称
     */
    public void setProjectName(String projectName) {
        this.projectName = projectName;
    }

    /**
     * 项目编号
     */
    public String getProjectNo() {
        return projectNo;
    }

    /**
     * 项目编号
     */
    public void setProjectNo(String projectNo) {
        this.projectNo = projectNo;
    }

    /**
     * 工程名称
     */
    public String getEngineeringName() {
        return engineeringName;
    }

    /**
     * 工程名称
     */
    public void setEngineeringName(String engineeringName) {
        this.engineeringName = engineeringName;
    }

    /**
     * 工程地点
     */
    public String getEngineeringPlace() {
        return engineeringPlace;
    }

    /**
     * 工程地点
     */
    public void setEngineeringPlace(String engineeringPlace) {
        this.engineeringPlace = engineeringPlace;
    }

    /**
     * 施工单位
     */
    public String getConstructUnit() {
        return constructUnit;
    }

    /**
     * 施工单位
     */
    public void setConstructUnit(String constructUnit) {
        this.constructUnit = constructUnit;
    }

    /**
     * 监理单位
     */
    public String getSupervisionUnit() {
        return supervisionUnit;
    }

    /**
     * 监理单位
     */
    public void setSupervisionUnit(String supervisionUnit) {
        this.supervisionUnit = supervisionUnit;
    }

    /**
     * 建设单位
     */
    public String getEmployer() {
        return employer;
    }

    /**
     * 建设单位
     */
    public void setEmployer(String employer) {
        this.employer = employer;
    }

    /**
     * 项目负责人
     */
    public String getProjectLeader() {
        return projectLeader;
    }

    /**
     * 项目负责人
     */
    public void setProjectLeader(String projectLeader) {
        this.projectLeader = projectLeader;
    }

    /**
     * 联系方式
     */
    public String getContactInfo() {
        return contactInfo;
    }

    /**
     * 联系方式
     */
    public void setContactInfo(String contactInfo) {
        this.contactInfo = contactInfo;
    }

    /**
     * 开工日期
     */
    public Date getStartDate() {
        return startDate;
    }

    /**
     * 开工日期
     */
    public void setStartDate(Date startDate) {
        this.startDate = startDate;
    }

    /**
     * 竣工日期
     */
    public Date getEndDate() {
        return endDate;
    }

    /**
     * 竣工日期
     */
    public void setEndDate(Date endDate) {
        this.endDate = endDate;
    }

    /**
     * 项目完成程度
     */
    public String getSchedule() {
        return schedule;
    }

    /**
     * 项目完成程度
     */
    public void setSchedule(String schedule) {
        this.schedule = schedule;
    }

    /**
     * 项目任务
     */
    public String getProjectTaskId() {
        return projectTaskId;
    }

    /**
     * 项目任务
     */
    public void setProjectTaskId(String projectTaskId) {
        this.projectTaskId = projectTaskId;
    }

    /**
     * 创建时间
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * 创建时间
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /**
     * 修改时间
     */
    public Date getUpdateTime() {
        return updateTime;
    }

    /**
     * 修改时间
     */
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    /**
     * 备用1
     */
    public String getBak1() {
        return bak1;
    }

    /**
     * 备用1
     */
    public void setBak1(String bak1) {
        this.bak1 = bak1;
    }

    /**
     * 备用2
     */
    public String getBak2() {
        return bak2;
    }

    /**
     * 备用2
     */
    public void setBak2(String bak2) {
        this.bak2 = bak2;
    }

    /**
     * 备用3
     */
    public String getBak3() {
        return bak3;
    }

    /**
     * 备用3
     */
    public void setBak3(String bak3) {
        this.bak3 = bak3;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        SceneSituationEntity other = (SceneSituationEntity) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getProjectName() == null ? other.getProjectName() == null : this.getProjectName().equals(other.getProjectName()))
            && (this.getProjectNo() == null ? other.getProjectNo() == null : this.getProjectNo().equals(other.getProjectNo()))
            && (this.getEngineeringName() == null ? other.getEngineeringName() == null : this.getEngineeringName().equals(other.getEngineeringName()))
            && (this.getEngineeringPlace() == null ? other.getEngineeringPlace() == null : this.getEngineeringPlace().equals(other.getEngineeringPlace()))
            && (this.getConstructUnit() == null ? other.getConstructUnit() == null : this.getConstructUnit().equals(other.getConstructUnit()))
            && (this.getSupervisionUnit() == null ? other.getSupervisionUnit() == null : this.getSupervisionUnit().equals(other.getSupervisionUnit()))
            && (this.getEmployer() == null ? other.getEmployer() == null : this.getEmployer().equals(other.getEmployer()))
            && (this.getProjectLeader() == null ? other.getProjectLeader() == null : this.getProjectLeader().equals(other.getProjectLeader()))
            && (this.getContactInfo() == null ? other.getContactInfo() == null : this.getContactInfo().equals(other.getContactInfo()))
            && (this.getStartDate() == null ? other.getStartDate() == null : this.getStartDate().equals(other.getStartDate()))
            && (this.getEndDate() == null ? other.getEndDate() == null : this.getEndDate().equals(other.getEndDate()))
            && (this.getSchedule() == null ? other.getSchedule() == null : this.getSchedule().equals(other.getSchedule()))
            && (this.getProjectTaskId() == null ? other.getProjectTaskId() == null : this.getProjectTaskId().equals(other.getProjectTaskId()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
            && (this.getBak1() == null ? other.getBak1() == null : this.getBak1().equals(other.getBak1()))
            && (this.getBak2() == null ? other.getBak2() == null : this.getBak2().equals(other.getBak2()))
            && (this.getBak3() == null ? other.getBak3() == null : this.getBak3().equals(other.getBak3()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getProjectName() == null) ? 0 : getProjectName().hashCode());
        result = prime * result + ((getProjectNo() == null) ? 0 : getProjectNo().hashCode());
        result = prime * result + ((getEngineeringName() == null) ? 0 : getEngineeringName().hashCode());
        result = prime * result + ((getEngineeringPlace() == null) ? 0 : getEngineeringPlace().hashCode());
        result = prime * result + ((getConstructUnit() == null) ? 0 : getConstructUnit().hashCode());
        result = prime * result + ((getSupervisionUnit() == null) ? 0 : getSupervisionUnit().hashCode());
        result = prime * result + ((getEmployer() == null) ? 0 : getEmployer().hashCode());
        result = prime * result + ((getProjectLeader() == null) ? 0 : getProjectLeader().hashCode());
        result = prime * result + ((getContactInfo() == null) ? 0 : getContactInfo().hashCode());
        result = prime * result + ((getStartDate() == null) ? 0 : getStartDate().hashCode());
        result = prime * result + ((getEndDate() == null) ? 0 : getEndDate().hashCode());
        result = prime * result + ((getSchedule() == null) ? 0 : getSchedule().hashCode());
        result = prime * result + ((getProjectTaskId() == null) ? 0 : getProjectTaskId().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        result = prime * result + ((getBak1() == null) ? 0 : getBak1().hashCode());
        result = prime * result + ((getBak2() == null) ? 0 : getBak2().hashCode());
        result = prime * result + ((getBak3() == null) ? 0 : getBak3().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", projectName=").append(projectName);
        sb.append(", projectNo=").append(projectNo);
        sb.append(", engineeringName=").append(engineeringName);
        sb.append(", engineeringPlace=").append(engineeringPlace);
        sb.append(", constructUnit=").append(constructUnit);
        sb.append(", supervisionUnit=").append(supervisionUnit);
        sb.append(", employer=").append(employer);
        sb.append(", projectLeader=").append(projectLeader);
        sb.append(", contactInfo=").append(contactInfo);
        sb.append(", startDate=").append(startDate);
        sb.append(", endDate=").append(endDate);
        sb.append(", schedule=").append(schedule);
        sb.append(", projectTaskId=").append(projectTaskId);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", bak1=").append(bak1);
        sb.append(", bak2=").append(bak2);
        sb.append(", bak3=").append(bak3);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}